<!DOCTYPE html>
<html>
<head>

    <meta charset="utf-8"/>

    <title>打印为pdf</title>

    <script type="text/javascript">
        function printdiv(printpage) {
            var beginDate = $("#beginDate").val();
            var endDate = $("#endDate").val();
            /*  window.open(window.location.pathname+'?beginDate='+beginDate +'&endDate='+endDate);*/
            /*	window.open(window.location.pathname);*/
            var style = "<style>.score_text_dl dd {float: left;width: 232px;text-align: left;line-height: 18px;font-family: '微软雅黑';}" +
                ".score_text_dl {float: left;font-size: 16px;color: #333;padding-bottom: 16px;width: 398px;text-align: center;overflow: hidden;}</style>";
            var headstr = "<html><head><title></title>" + style + "</head><body>";
            var footstr = "</body></html>";
            var newstr = $("#" + printpage).html(); //获得 div 里的所有 html 数据
            var oldstr = document.body.innerHTML;
            document.body.innerHTML = headstr + newstr + footstr;
            window.print();
            document.body.innerHTML = oldstr;
            //window.opener.location.reload();
            //window.parent.document.close();
            /*window.parent.close();*/
            $("#beginDate").val(beginDate);
            $("#endDate").val(endDate);
            $("#endTime").val(endDate);
            window.location.reload();
            return true;
        }

        var E3CommonsVariables = {
            // Unified request prefix
            RequestPrefix: function () {
                return "/e3/static";
            },
            RequestPrefixCommon: function () {
                return "/e3/static/common";
            },
            RequestPrefixQuery: function () {
                return "/e3/static/query";
            },
            RequestPrefixTran: function () {
                return "/e3/static/transact";
            },
            RequestPrefixLife: function () {
                return "/e3/static/life";
            },
            BindingPage: function () {
                return "/e3/query/binding_number.html";
            }
        };
        function realTimeToExcel() {
            window.location.href = E3CommonsVariables.RequestPrefix() + "/realtimewo/toExcel?_=" + new Date().getTime();
        }
    </script>
    <script src="../jquery/1.11.1/jquery.min.js"></script>
</head>
<body>

<div id="womemberinfoMain" class="query_main">
    <div style="height: auto; line-height: 40px; border-bottom: 0px;" class="query_zl">
        <p style="font-size: 24px; float: left">账户余额</p>
        <p style="float: left; margin-left: 10px;">截至2016年8月24日</p>
    </div>
    <div class="score_content">
        <div class="score_change">
            <div style="padding-top: 20px; width: 908px;" class="score_text"><dl style="float: none" class="score_text_dl"><dt> 当前可用余额</dt><dd><span style="color: #f60">123.67元</span></dd></dl><dl style="float: none" class="score_text_dl"><dt>欠费：</dt><dd><span style="color: #f60">0.00元 </span> </dd> </dl>
            </div>
            <div class="clr"></div>
            <div class="space-20"></div>
            <div class="score_table">
                <div class="tcbl"><!--start tc46--><table width="100%" border="1" class="package_tab"><tbody><tr><th colspan="4" class="woThTiltle"> 账户余额明细 </th></tr><tr class="package_tab_th"><th width="25%">费用项目</th><th width="25%">费用类型</th><th width="25%">金额（元）</th><th width="25%">合计（元）</th></tr><tr><th rowspan="1"> 可用余额</th><th> 可用余额</th><th>123.67</th><th rowspan="1">123.67</th></tr><tr><th rowspan="1">实时话费</th><th>实时话费</th><th>75.90</th><th rowspan="1">75.90</th></tr><tr><th rowspan="4">账户余额</th> <th>可用预存款</th> <th>123.67</th> <th rowspan="4">123.67</th></tr><tr> <th>可用赠款</th> <th>0.00</th> </tr><tr><th>冻结预存款</th><th>0.00</th></tr><tr><th>冻结赠款</th><th>0.00</th></tr><tr><th rowspan="1">欠费</th><th>欠费</th><th>0.00</th><th rowspan="1">0.00</th></tr></tbody></table>
                    <div class="clr"></div>
                    <div class="space-20"></div>
                </div><!--end tc46-->
            </div>
            <div class="space-30"></div>
            <div class="score_table_btn"><input type="button" onclick="printdiv('womemberinfoMain')" value="打&nbsp;印"> <input type="button" onclick="realTimeToExcel()" value="导&nbsp;出">
            </div>
            <div class="space-50"></div>
        </div>
    </div>
</div>

</body>
</html>